package com.threeonemeeting.activity;

import android.content.Intent;
import android.os.Bundle;
import android.widget.TextView;

import com.threeonemeeting.R;
import com.threeonemeeting.activity.ext.MeetingPageListActivity;
import com.threeonemeeting.listview.DragRefreshListView;

public class MyMeetingActivity extends MeetingPageListActivity {

	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.ac_meeting_list, "我的31");

		Intent intent = getIntent();
		if (!intent.equals(null)) {
			Bundle bundle = intent.getExtras();
			String strTitle = bundle.getString("Title");

			TextView textTitle = (TextView) this.findViewById(R.id.title);
			textTitle.setText(strTitle);
		} else {
			finish();
		}

		// ListView
		meetingListView
				.setOnLoadMoreListener(new DragRefreshListView.OnLoadMoreListener() {

					public void onLoadMore(int nNextPage) {
						getNextPage(nNextPage);

						showLoadingMoreLayout(true);
					}
				});

		getNextPage(1);
	}

	/**
	 * @desc 请求返回下一页的列表内容 子类重载该函数
	 * @param nPage
	 */
	protected void getNextPage(int nPage) {
	}
}